import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
import { Provider } from "react-redux";
import store from "@/store/index";
import { App as AntdApp, ConfigProvider } from "antd";
import { StyleProvider } from "@ant-design/cssinjs";
import zhCN from "antd/locale/zh_CN";
import "dayjs/locale/zh-cn";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <Provider store={store}>
      <ConfigProvider locale={zhCN}>
        <StyleProvider hashPriority="high">
          <AntdApp>
            <App />
          </AntdApp>
        </StyleProvider>
      </ConfigProvider>
    </Provider>
  </StrictMode>
);
